package com.hoshiicloud.market.entity.commission;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;

/**
 * @Author:campchen
 * @Date:Created in 上午 09:49 2019/7/25
 * @PACKAGENAME com.hoshiicloud.user.entity.commission
 * @Description  暂时 将定义放在此处
 */
//是否启用
enum STATE {
    NONE,APPLY
}

//商品，标签，分类
enum CATE {
    PRODUCT,TAG,CATEGORY
}

//按金额，数量
enum BUY {
    AMOUNT,QTY
}

//按固定值或比例
enum REWARD_WAY {
    FIXED,RATIO
}

//奖励来源  商品利润 渠道经费
enum REWARD_SRC {
    PROFIT,CHANNEL
}

public class Strategy {
    private String no;      //策略编号
    private String version; //策略版本
    private STATE status;   //当前状态
    private String describe;  //简要描述


    //优先级
    private CATE priority_first;    //优先级顺序
    private CATE priority_second;   //优先级顺序
    private CATE priority_third;    //优先级顺序


    //同级
    private String priority_sibling_first;   //优先级顺序
    private String priority_sibling__second;   //优先级顺序
    private String priority_sibling_third;   //优先级顺序

    private ArrayList<BigInteger> include_products; //包含商品
    private ArrayList<BigInteger> include_tags;     //包含标签
    private ArrayList<BigInteger> include_category; //包含类别


    //消费者等级，标签
    private ArrayList<BigInteger> consumers_level; //消费者等级
    private ArrayList<BigInteger> consumers_tag;    //消费者标签

    private BUY buy_states;         //计算方式
    private BigDecimal con_amount; //按金额
    private BigInteger con_qtys;   //按数量


    private Reward reward_sale_level1;   //1级分销
    private Reward reward_sale_level2;  //2级分销
    private Reward reward_partners;     //合作伙伴
    private Reward reward_sales;        //销售奖励
    private Reward reward_channel;      //渠道经费

}
